﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pattern08桥接模式.Base
{
    /// <summary>
    /// 抽象层的接口
    /// </summary>
    public abstract class CupBase
    {
        private CoffeeBase coffeeBase;
        public CupBase(CoffeeBase coffeeBase)
        {
            this.coffeeBase = coffeeBase;
        }

        public CoffeeBase CoffeeBase => coffeeBase;

        public void SetCoffee(CoffeeBase coffeeBase)
        {
            this.coffeeBase = coffeeBase;
        }

        public abstract void Sale();
    }
}
